package com.xiaoming.backend.dao.mapper;

import com.xiaoming.backend.dto.response.UserResponse;
import com.xiaoming.backend.entity.db.po.UserPO;
import com.xiaoming.backend.entity.db.example.UserPOExample;
import java.util.List;

import com.xiaoming.backend.entity.orm.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface UserPOMapper {
    long countByExample(UserPOExample example);

    int deleteByExample(UserPOExample example);

    int deleteByPrimaryKey(Long userId);

    int insert(UserPO row);

    int insertSelective(UserPO row);

    List<UserPO> selectByExampleWithRowbounds(UserPOExample example, RowBounds rowBounds);

    List<UserPO> selectByExample(UserPOExample example);

    UserPO selectByPrimaryKey(Long userId);

    int updateByExampleSelective(@Param("row") UserPO row, @Param("example") UserPOExample example);

    int updateByExample(@Param("row") UserPO row, @Param("example") UserPOExample example);

    int updateByPrimaryKeySelective(UserPO row);

    int updateByPrimaryKey(UserPO row);

    User selectByUsername(@Param("username")String username);
}